package com.conoic.sxs.xcj.gateway.web.controller.base;

import com.conoic.sxs.xcj.gateway.common.result.WebDto;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/test")
public class TestController extends BaseController {

    private static final Logger logger = LoggerFactory.getLogger(TestController.class);

    private static final String SUCCESS = "SUCCESS";

    @RequestMapping(value = "/heartBeat/check")
    @ResponseBody
    public String heartBeatCheck() {
        WebDto dto = new WebDto();
        dto.setCode(SUCCESS);
        return toJson(dto);
    }
}
